package com.bjsxt.livegoods.banner.service.controller;

import com.bjsxt.livegoods.banner.service.service.BannerService;
import com.bjsxt.livegoods.banner.serviceapi.BannerServiceAPI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 轮播图服务提供者控制器
 */

@RestController
public class BannerServiceController implements BannerServiceAPI {

    @Autowired
    private BannerService bannerService;

    /**
     * 查询轮播图列表
     * @return
     */
    @Override
    public Map<String, Object> getBanners() {
        Map<String, Object> banners = bannerService.getBanners();
        return banners;
    }
}
